home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / dev / c / minigl.lha / MiniGL / makefile.vbcc68k < prev    next >
Encoding:
Makefile  |  2002-04-26  |  3.1 KB  |  133 lines

  1. #
  2. # $Id: makefile.vbcc68k,v 1.1.1.1 2000/04/07 19:44:48 tfrieden Exp $
  3. #
  4. # $Author: tfrieden $
  5. #
  6. # $Date: 2000/04/07 19:44:48 $
  7. # $Revision: 1.1.1.1 $
  8. #
  9. # Makefile for vbcc AmigaOS/68k by Frank Wille
  10. #
  11. # (C) 1999 by Hyperion Software
  12. # All rights reserved
  13. #
  14. # This file is part of the MiniGL library project
  15. # See the file Licence.txt for more details
  16. #
  17. #
  18.  
  19. INCLUDE =
  20. DEBUG =
  21.  
  22. CFLAGS = -O1 -speed -c99 $(INCLUDE) -cpu=68060 -fpu=68060 $(DEBUG)
  23.  
  24. OP_CFLAGS = -O2 -speed -c99 $(INCLUDE) -cpu=68060 -fpu=68060 $(DEBUG)
  25.  
  26.  
  27. LIBS = -lm040 -lmgl -lextra -lcgfx
  28. LIBNAME = vlibm68k:mgl.lib
  29. DIR = Build
  30. EXENAME = GLTest
  31. EXESRC = src/GLTest.c
  32.  
  33. DEMOS = GLTest warp varray varray2 gears mtex driverinfo rasonly
  34.  
  35. CC=vc +m68kdb
  36. AR=join as
  37.  
  38. LIBOBJ = $(DIR)/kprintf.o $(DIR)/init.o $(DIR)/glu.o \
  39. $(DIR)/fog.o $(DIR)/others.o $(DIR)/texture.o \
  40. $(DIR)/context.o $(DIR)/matrix.o $(DIR)/buf.o \
  41. $(DIR)/clip.o $(DIR)/draw.o \
  42. $(DIR)/aclip.o $(DIR)/array.o $(DIR)/elements.o
  43.  
  44. all: $(LIBNAME) $(DEMOS)
  45.  
  46. install:
  47.     copy include/mgl/#?.h vinclude68k:mgl
  48.  
  49. clean:
  50.     delete force quiet $(DIR)/#?.o GLtest
  51.  
  52. lib: $(LIBNAME)
  53.     @echo "Done"
  54.  
  55. INCS = src/sysinc.h include/mgl/clip.h include/mgl/config.h \
  56.        include/mgl/context.h include/mgl/gl.h include/mgl/log.h \
  57.        include/mgl/matrix.h include/mgl/minigl.h include/mgl/vertexbuffer.h
  58.  
  59.  
  60. driverinfo: demos/driverinfo.c $(LIBNAME)
  61.     $(CC) $(CFLAGS) -o driverinfo demos/driverinfo.c $(LIBS)
  62.  
  63. warp: demos/warp.c $(LIBNAME)
  64.     $(CC) $(CFLAGS) -o warp demos/warp.c $(LIBS)
  65.  
  66. varray: demos/varray_new.c $(LIBNAME)
  67.     $(CC) $(CFLAGS) -o varray demos/varray_new.c $(LIBS)
  68.  
  69. varray2: demos/varray.c $(LIBNAME)
  70.     $(CC) $(CFLAGS) -o varray2 demos/varray.c $(LIBS)
  71.  
  72. gears: demos/gears_stats.c $(LIBNAME)
  73.     $(CC) $(CFLAGS) -o gears demos/gears_stats.c $(LIBS)
  74.  
  75. mtex: demos/mtex.c $(LIBNAME)
  76.     $(CC) $(CFLAGS) -o mtex demos/mtex.c $(LIBS)
  77.  
  78. rasonly: demos/rasonly.c $(LIBNAME)
  79.     $(CC) $(CFLAGS) -o rasonly demos/rasonly.c $(LIBS)
  80. $(LIBNAME): $(LIBOBJ)
  81.     $(AR) $(LIBNAME) $(LIBOBJ)
  82.  
  83. $(EXENAME): $(EXESRC) $(LIBNAME)
  84.     $(CC) $(CFLAGS) -o $@ $(EXESRC) $(LIBS)
  85.  
  86.  
  87.  
  88.  
  89. $(DIR)/fog.o: src/fog.c $(INCS)
  90.     $(CC) $(CFLAGS) -c -o $@ src/fog.c
  91.  
  92. $(DIR)/init.o: src/init.c $(INCS)
  93.     $(CC) $(CFLAGS) -c -o $@ src/init.c
  94.  
  95. $(DIR)/kprintf.o: src/kprintf.c $(INCS)
  96.     $(CC) $(CFLAGS) -c -o $@ src/kprintf.c
  97.  
  98. $(DIR)/context.o: src/context.c $(INCS)
  99.     $(CC) $(CFLAGS) -c -o $@ src/context.c
  100.  
  101. $(DIR)/texture.o: src/texture.c $(INCS)
  102.     $(CC) $(OP_CFLAGS) -c -o $@ src/texture.c
  103.  
  104. $(DIR)/glu.o: src/glu.c  $(INCS)
  105.     $(CC) $(CFLAGS) -c -o $@ src/glu.c
  106.  
  107. $(DIR)/others.o: src/others.c  $(INCS)
  108.     $(CC) $(CFLAGS) -c -o $@ src/others.c
  109.  
  110. $(DIR)/aclip.o: src/aclip.c $(INCS)
  111.     $(CC) $(CFLAGS) -c -o $@ src/aclip.c
  112.  
  113. $(DIR)/elements.o: src/vertexelements.c $(INCS)
  114.     $(CC) $(CFLAGS) -c -o $@ src/vertexelements.c
  115.  
  116. $(DIR)/array.o: src/vertexarray.c $(INCS)
  117.     $(CC) $(CFLAGS) -c -o $@ src/vertexarray.c
  118.  
  119.  
  120. $(DIR)/matrix.o: src/matrix.c $(INCS)
  121.     $(CC) $(OP_CFLAGS) -c -o $@ src/matrix.c 
  122.  
  123. $(DIR)/clip.o: src/hclip.c $(INCS)
  124.     $(CC) $(CFLAGS) -c -o $@ src/hclip.c 
  125.  
  126. $(DIR)/draw.o: src/draw.c $(INCS)
  127.     $(CC) $(CFLAGS) -c -o $@ src/draw.c 
  128.  
  129. $(DIR)/buf.o: src/vertexbuffer.c $(INCS)
  130.     $(CC) $(OP_CFLAGS) -c -o $@ src/vertexbuffer.c 
  131.  
  132.  
  133.